import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import login from '../components/login/login'
import firstlogin from '../components/login/firstlogin'
import index from '../components/index/index'
import ziliao from '../components/ziliao/ziliao'
import xiugaipwd from '../components/ziliao/xiugaipwd'
import shoukuan from '../components/shoukuan/shoukuan'
import shuzishoukuan from '../components/shoukuan/shoukuandetail/shuzishoukuan'
import shoukuanjilu from '../components/shoukuan/shoukuandetail/shoukuanjilu'
import confirmshoukuan from '../components/shoukuan/shoukuandetail/confirmshoukuan'
import confirmend from '../components/shoukuan/shoukuandetail/confirmend'
import useyanzheng from '../components/useyanzheng/useyanzheng'
import yanzheng from '../components/useyanzheng/yanzhengdetail/yanzheng'
import choose from '../components/useyanzheng/yanzhengdetail/choose'
import success from '../components/useyanzheng/yanzhengdetail/success'
import shuziyanzheng from '../components/useyanzheng/yanzhengdetail/yanzhengform'
import danci from '../components/useyanzheng/yanzhengdetail/danci'
import jilu from '../components/useyanzheng/yanzhengdetail/jilu'
import zhuanshuerweima from '../components/zhuanshuerweima/zhuanshuerweima'
import cunkuan from '../components/cunkuan/cunkuan'
import cunkuanjilu from '../components/cunkuan/cunkuanjilu/cunkuanjilu'
import weiguodetail from '../components/cunkuan/cunkuanjilu/weiguodetail'
import myyeji from '../components/myyeji/jingli'
import yuangong from '../components/myyeji/yuangong'
import jinglihuiyuan from '../components/myhuiyuan/jinglihuiyuan'
import shenhe from '../components/myhuiyuan/shenhe/shenhe'
import wanshanziliao from '../components/myhuiyuan/wanshanziliao'
import huiyuandetail from '../components/myhuiyuan/shenhe/huiyuandetail'
import yuangonghuiyuan from '../components/myhuiyuan/yuangonghuiyuan'
import yuangongdetail from '../components/myhuiyuan/shenhe/yuangongdetail'
import addhuiyuan from '../components/addhuiyuan/addhuiyuan'
import tuika from '../components/tuika/tuika'
import tuikatijiao from '../components/tuika/tuikatijiao'
import myyuangong from '../components/myyuangong/myyuangong'
import shangjiaindex from '../components/shangjiaindex/shangjiaindex'
import yinpin from '../components/useyanzheng/yanzhengdetail/yinpin'
import addCheck from '../components/addCheck/addCheck'
import addchecktijiao from '../components/addCheck/addchecktijiao'
import addcheckyanzheng from '../components/addCheck/addcheckyanzheng'
import addcheckchoose from '../components/addCheck/addcheckchoose'
import addchecksuccess from '../components/addCheck/addchecksuccess'
import addcheckreduce from '../components/addCheck/addcheckreduce'
import invoice from '../components/invoice/invoice'
import invoicetijiao from '../components/invoice/invoicetijiao'
import giveVipcard from '../components/giveVipcard/giveVipcard'
import giveVipcardList from '../components/giveVipcard/giveVipcardList'
import huiyuan from '../components/vipuserecord/huiyuan'
import checkrecord from '../components/vipuserecord/checkrecord'
import dianzijinrecord from '../components/vipuserecord/dianzijinrecord'
import black from '../components/black/black'
import blacktijiao from '../components/black/blacktijiao'
import addblack from '../components/black/addblack'
import huiyuanxieyi from '../components/huiyuanxieyi/xieyi'
import optlog from '../components/account/optlog'
import account from '../components/account/account'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login,
      meta: {
        title: '登录'
      }
    }, {
      path: '/useyanzheng',
      name: 'useyanzheng',
      component: useyanzheng,
      meta: {
        title: '使用验证'
      }
    }, {
      path: '/addCheck',
      name: 'addCheck',
      component: addCheck,
      meta: {
        title: '补录工单'
      }
    }, {
      path: '/addchecktijiao',
      name: 'addchecktijiao',
      component: addchecktijiao,
      meta: {
        title: '补录提交'
      }
    }, {
      path: '/addcheckyanzheng',
      name: 'addcheckyanzheng',
      component: addcheckyanzheng,
      meta: {
        title: '补录验证'
      }
    }, {
      path: '/addcheckchoose',
      name: 'addcheckchoose',
      component: addcheckchoose,
      meta: {
        title: '补录选择'
      }
    }, {
      path: '/addchecksuccess',
      name: 'addchecksuccess',
      component: addchecksuccess,
      meta: {
        title: '补录成功'
      }
    }, {
      path: '/addcheckreduce',
      name: 'addcheckreduce',
      component: addcheckreduce,
      meta: {
        title: '核验减少'
      }
    },
    {
      path: '/yinpin',
      name: 'yinpin',
      component: yinpin,
      meta: {
        title: '免费饮品'
      }
    },
    {
      path: '/shangjiaindex',
      name: 'shangjiaindex',
      component: shangjiaindex,
      meta: {
        title: '首页'
      }
    },
    {
      path: '/myyuangong',
      name: 'myyuangong',
      component: myyuangong,
      meta: {
        title: '我的员工'
      }
    },
    {
      path: '/tuikatijiao',
      name: 'tuikatijiao',
      component: tuikatijiao,
      meta: {
        title: '退卡提交'
      }
    },
    {
      path: '/tuika',
      name: 'tuika',
      component: tuika,
      meta: {
        title: '退卡'
      }
    },
    {
      path: '/addhuiyuan',
      name: 'addhuiyuan',
      component: addhuiyuan,
      meta: {
        title: '新增会员'
      }
    },
    {
      path: '/yuangongdetail',
      name: 'yuangongdetail',
      component: yuangongdetail,
      meta: {
        title: '会员详情'
      }
    },
    {
      path: '/huiyuandetail',
      name: 'huiyuandetail',
      component: huiyuandetail,
      meta: {
        title: '会员详情'
      }
    },
    {
      path: '/shenhe',
      name: 'shenhe',
      component: shenhe,
      meta: {
        title: '审核'
      }
    },
    {
      path: '/jinglihuiyuan',
      name: 'jinglihuiyuan',
      component: jinglihuiyuan,
      meta: {
        title: '会员'
      }
    },
    {
      path: '/yuangonghuiyuan',
      name: 'yuangonghuiyuan',
      component: yuangonghuiyuan,
      meta: {
        title: '会员'
      }
    }, {
      path: '/huiyuanxieyi',
      name: 'huiyuanxieyi',
      component: huiyuanxieyi,
      meta: {
        title: '会员',
        isAuth: false
      }
    }, {
      path: '/wanshanziliao',
      name: 'wanshanziliao',
      component: wanshanziliao,
      meta: {
        title: '完善资料'
      }
    }, {
      path: '/myyeji',
      name: 'myyeji',
      component: myyeji,
      meta: {
        title: '业绩'
      }
    },
    {
      path: '/yuangong',
      name: 'yuangong',
      component: yuangong,
      meta: {
        title: '员工'
      }
    },
    {
      path: '/weiguodetail',
      name: 'weiguodetail',
      component: weiguodetail,
      meta: {
        title: '新增会员详情'
      }
    },
    {
      path: '/cunkuanjilu',
      name: 'cunkuanjilu',
      component: cunkuanjilu,
      meta: {
        title: '存款记录'
      }
    },
    {
      path: '/cunkuan',
      name: 'cunkuan',
      component: cunkuan,
      meta: {
        title: '存款'
      }
    },
    {
      path: '/zhuanshuerweima',
      name: 'zhuanshuerweima',
      component: zhuanshuerweima,
      meta: {
        title: '专属二维码'
      }
    },
    {
      path: '/jilu',
      name: 'jilu',
      component: jilu,
      meta: {
        title: '验证记录'
      }
    },
    {
      path: '/danci',
      name: 'danci',
      component: danci,
      meta: {
        title: '单次验证'
      }
    },
    {
      path: '/shuziyanzheng',
      name: 'shuziyanzheng',
      component: shuziyanzheng,
      meta: {
        title: '数字验证'
      }
    },
    {
      path: '/success',
      name: 'success',
      component: success,
      meta: {
        title: '验证成功'
      }
    },
    {
      path: '/choose',
      name: 'choose',
      component: choose,
      meta: {
        title: '使用验证'
      }
    },
    {
      path: '/yanzheng',
      name: 'yanzheng',
      component: yanzheng,
      meta: {
        title: '使用验证'
      }
    },
    {
      path: '/confirmend',
      name: 'confirmend',
      component: confirmend,
      meta: {
        title: '收款确认'
      }
    },
    {
      path: '/confirmshoukuan',
      name: 'confirmshoukuan',
      component: confirmshoukuan,
      meta: {
        title: '收款提交'
      }
    },
    {
      path: '/shoukuanjilu',
      name: 'shoukuanjilu',
      component: shoukuanjilu,
      meta: {
        title: '收款记录'
      }
    },
    {
      path: '/shuzishoukuan',
      name: 'shuzishoukuan',
      component: shuzishoukuan,
      meta: {
        title: '数字收款'
      }
    },
    {
      path: '/firstlogin',
      name: 'firstlogin',
      component: firstlogin,
      meta: {
        title: '修改密码'
      }
    },
    {
      path: '/index',
      name: 'index',
      component: index,
      meta: {
        title: '首页'
      }
    },
    {
      path: '/ziliao',
      name: 'ziliao',
      component: ziliao,
      meta: {
        title: '个人资料'
      }
    },
    {
      path: '/xiugaipwd',
      name: 'xiugaipwd',
      component: xiugaipwd,
      meta: {
        title: '修改密码'
      }
    },
    {
      path: '/shoukuan',
      name: 'shoukuan',
      component: shoukuan,
      meta: {
        title: '收款'
      }
    },
    {
      path: '/invoicetijiao',
      name: 'invoicetijiao',
      component: invoicetijiao,
      meta: {
        title: '发票申请'
      }
    },
    {
      path: '/invoice',
      name: 'invoice',
      component: invoice,
      meta: {
        title: '发票'
      }
    },
    {
      path: '/giveVipcard',
      name: 'giveVipcard',
      component: giveVipcard,
      meta: {
        title: '赠送消费券',
        isAuth: true
      }
    },
    {
      path: '/giveVipcardList',
      name: 'giveVipcardList',
      component: giveVipcardList,
      meta: {
        title: '赠送记录',
        isAuth: true
      }
    },
    {
      path: '/giveVipcardList',
      name: 'giveVipcardList',
      component: giveVipcardList,
      meta: {
        title: '赠送记录',
        isAuth: true
      }
    },
    {
      path: '/huiyuan',
      name: 'huiyuan',
      component: huiyuan,
      meta: {
        title: '会员',
        isAuth: true
      }
    },
    {
      path: '/checkrecord',
      name: 'checkrecord',
      component: checkrecord,
      meta: {
        title: '核销记录',
        isAuth: true
      }
    },
    {
      path: '/dianzijinrecord',
      name: 'dianzijinrecord',
      component: dianzijinrecord,
      meta: {
        title: '电子金记录',
        isAuth: true
      }
    }, {
      path: '/blacktijiao',
      name: 'blacktijiao',
      component: blacktijiao,
      meta: {
        title: '标记黑名单',
        isAuth: true
      }
    },
    {
      path: '/black',
      name: 'black',
      component: black,
      meta: {
        title: '黑名单',
        isAuth: true
      }
    },
    {
      path: '/addblack',
      name: 'addblack',
      component: addblack,
      meta: {
        title: '新增黑名单',
        isAuth: true
      }
    },{
      path: '/optlog',
      name: 'optlog',
      component: optlog,
      meta: {
        title: '解绑日志',
        isAuth: true
      }
    },
    {
      path: '/account',
      name: 'account',
      component: account,
      meta: {
        title: '用户账号',
        isAuth: true
      }
    },
  ]
})
